package com.service;

import com.pojo.Dormitory;
import org.springframework.stereotype.Service;

import java.util.List;



public interface IDormitoryService {
    List<Dormitory> FindAllBuild();

    /**
     * 根据id删除宿舍
     *
     * @param id
     * @return
     */
    Integer deleteDormitory(String id);


    /**
     * 添加宿舍
     *
     * @param id
     * @param bid
     * @return
     */
    Integer addDormitory(String id, String bid);

    /**
     * 修改
     *
     * @param bid
     * @return
     */
    Integer updateDormitory(String id,String bid);


    /**
     * 根据宿舍名查询楼层
     * @param dormitoryName
     * @return
     */
    String selectBuildByName(String dormitoryName);
}
